package cn.learn.validator;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.validation.Validator;

/**
 * @author huangyezhan
 * @version 1.0
 * @date 2020年12月11日18:01
 */
@Component
public class ValidatorUtil {

    public static Validator validator;

    @Autowired
    public void setValidator(Validator v){
        validator = v;
    }

}
